package compile;

import java.util.List;

/**
 * @author SongJun
 * @description TODO:
 * @date 2021/9/28 15:26
 */
public class Prog implements AstNode {
    private List<Statement> stmts;

    public Prog(List<Statement> stmts) {
        this.stmts = stmts;
    }

    public List<Statement> getStmts() {
        return stmts;
    }

    public void setStmts(List<Statement> stmts) {
        this.stmts = stmts;
    }

    @Override
    public void dump(String prefix) {
        System.out.println(prefix+"Prog");
        for (Statement x : this.stmts){
            x.dump(prefix+"\t");
        }
    }
}
